#ifndef NEWGAMEDIALOG_H
#define NEWGAMEDIALOG_H

#include <QDialog>
#include <QListWidgetItem>

namespace Ui {
class NewGameDialog;
}

class NewGameDialog : public QDialog
{
   Q_OBJECT

public:
   explicit NewGameDialog(QWidget *parent = 0);
   ~NewGameDialog();
   bool isHost;
   int hostPort;
   QString joinIP;
   QString hostIP;
   int joinPort;
private:
   void copyFields();
   Ui::NewGameDialog *ui;

private slots:
   void onHostButton();
   void onJoinButton();
   void onItemPressed(QListWidgetItem *item);
};

#endif // NEWGAMEDIALOG_H
